import state from "./state";

export const singer = stats => stats.singer

export const playing = stats => stats.playing

export const fullScreen = stats => stats.fullScreen

export const playlist = stats => stats.playlist

export const sequenceList = stats => stats.sequenceList

export const mode = stats => stats.mode

export const currentIndex = stats => stats.currentIndex

export const currentSong = (state) => {
  return state.playlist[state.currentIndex] || {}
}

export const disc = state => state.disc

export const topList = stats => stats.topList

export const searchHistory = state => state.searchHistory
